package top.shiyiri.shops.dao;

import top.shiyiri.shops.bean.ShopParTop20;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author Aunean
 * @date 2021/12/28
 */
public interface ShopParTop20Dao {

    @Select("select * from shop_par_top20 limit #{begin}, #{size}")
    List<ShopParTop20> shopParTop20ByPage(@Param("begin") int begin,@Param("size") int size);

    @Select("select count(*) from shop_par_top20")
    int totalLines();

    @Select("select * from shop_par_top20")
    List<ShopParTop20> shopParTop20();
}
